package com.fbs.chicken.shirodemo.user.service.imp;

import com.fbs.chicken.shirodemo.user.mapper.RoleMapper;
import com.fbs.chicken.shirodemo.user.service.AuthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

@Service("/authService")
public class AuthServiceImp implements AuthService {

    @Override
    public Set<String> findRoleStr(String userId) {
        return roleMapper.findRoleStrByUserId(userId);
    }

    @Resource
    private RoleMapper roleMapper;
}
